<?php
namespace app\api\controller;

use app\common\controller\Api;

class Ask extends Api{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function index(){
        $askModel = new \app\admin\model\ask\Ask();
        $list = collection($askModel->where([])->select());
        if($list){
            $list = $list->toArray();
            $this->success('ok',$list);
        }else{
            $this->success('成功',[]);
        }
    }
}